home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / D22RMB (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  985 b   |  21 lines

  1. package com.sun.java.swing;
  2.  
  3. import java.awt.Component;
  4. import java.awt.event.FocusEvent;
  5. import java.awt.event.FocusListener;
  6. import java.io.Serializable;
  7. import java.util.EventObject;
  8.  
  9. class JMenuItem$MenuItemFocusListener implements FocusListener, Serializable {
  10.    public void focusGained(FocusEvent event) {
  11.    }
  12.  
  13.    public void focusLost(FocusEvent event) {
  14.       JMenuItem mi = (JMenuItem)((EventObject)event).getSource();
  15.       if (((AbstractButton)mi).isFocusPainted()) {
  16.          ((Component)mi).repaint();
  17.       }
  18.  
  19.    }
  20. }
  21.